//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.wyh.controller.groupfour.proprietor;

import com.wyh.common.result.Result;
import com.wyh.domain.vo.gruopfour.customerVO.CustomerSummary;
import com.wyh.service.appservice.CustomerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(
        tags = {"我的物业"}
)
@RequestMapping({"/customer"})
@RestController
public class CustomerController4 {
    private final CustomerService customerService;

    @Autowired
    public CustomerController4(CustomerService customerService) {
        this.customerService = customerService;
    }

    @GetMapping({"/summary"})
    @ApiOperation("获取我的物业汇总")
    public Result<List<List<CustomerSummary>>> getCustomerSummary() {
        List<List<CustomerSummary>> customerSummaryByPhone = this.customerService.getCustomerSummaryByPhone();
        return Result.success(customerSummaryByPhone);
    }
}
